import * as school from './school.js';
import * as student from "./student.js";

console.log(school.name)
console.log(student.name)


// 导入ES6模块时有两种方式
// 方式一：将 JavaScript 文件的扩展名从 .js 改为 .mjs
// 方式二：在 package.json 中设置 "type": "module"